import request from '@/utils/request'

// 查询赛事管理列表
export function listSkill(query) {
  return request({
    url: '/business/skill/list',
    method: 'get',
    params: query
  })
}

// 查询赛事管理详细
export function getSkill(id) {
  return request({
    url: '/business/skill/' + id,
    method: 'get'
  })
}

// 新增赛事管理
export function addSkill(data) {
  return request({
    url: '/business/skill',
    method: 'post',
    data: data
  })
}

// 修改赛事管理
export function updateSkill(data) {
  return request({
    url: '/business/skill',
    method: 'put',
    data: data
  })
}
export function saveOrUpdate(data) {
  return request({
    url: '/business/skill/saveOrUpdate',
    method: 'put',
    data: data
  })
}

// 删除赛事管理
export function delSkill(id) {
  return request({
    url: '/business/skill/' + id,
    method: 'delete'
  })
}


export function check(data) {
  return request({
    url: '/business/skill/check',
    method: 'put',
    data: data
  })
}




